<template>
	<view>
		<view>
			
			<view class="u-m-t-20">
				<u-cell-group>
					<u-cell-item icon="rmb-circle" title="已完成" @click="diaji"></u-cell-item>
				</u-cell-group>
			</view>
			
			<view class="u-m-t-20">
				<u-cell-group>
					<u-cell-item icon="star" title="已取消" @click="diaji1"></u-cell-item>
					
				</u-cell-group>
			</view>
			
			<view class="u-m-t-20">
				<u-cell-group>
					<u-cell-item icon="setting" title="已报名" @click="diaji2"></u-cell-item>
				</u-cell-group>
			</view>
		</view>
		<uni-group style="position: fixed;bottom: 0%;right: 0%;left: 0%;z-index: 99;">
			<view class="item-container">
				<view class="thumb-box" v-for="(item1, index1) in list" :key="index1" @click="dian(item1.link)">
					<image class="item-menu-image" :src="item1.image" mode=""></image>
					<view class="item-menu-name">{{item1.text}}</view>
				</view>
			</view>
		</uni-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						image: '../../../../static/uview/example/js_select_bak.png',
						text: '首页',
						link: 'index'
					},
					{
						image: '../../../../static/uview/example/js_select_bak.png',
						text: '志愿活动',
						link: 'zhi'
					},
					{
						image: '../../../../static/uview/example/js_select_bak.png',
						text: '我的活动',
						link: 'my'
					},
				],
			}
		},
		methods: {
			diaji(){
				uni.navigateTo({
					url:'wang'
				})
			},
			diaji1(){
				uni.navigateTo({
					url:'quxiao'
				})
			},
			diaji2(){
				uni.navigateTo({
					url:'baoming'
				})
			},
			dian(url) {
				uni.navigateTo({
					url: url
				})
			},
		}
	}
</script>

<style>
	.item-container {
		display: flex;
		flex-wrap: wrap;
	}

	.thumb-box {
		width: 33.33%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin-top: 20rpx;
	}

	.item-menu-image {
		width: 80rpx;
		height: 80rpx;
	}
</style>
